<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>定制中-我的定制</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<include file="public/comm"/>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav hx_1 fs_xl">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title fs_xl"><if $goosinfo.other_content.destine_status<2>定制中<else />定制完成</if></h1>
		</header>
		<div class="mui-content fs_xl" style="height: 100%;padding-bottom: 0;">
			<div class="yl_top">
				<if $goosinfo.other_content.destine_status == 0>
					<img src="{$goosinfo.other_content.despic}" />
				<else />
					<img src="{$goosinfo.other_content.worksLast}" />
				</if>
			</div>
			<if $goosinfo.other_content.destine_status < 2>
				<div class="yl_bom" style="position: absolute;height: auto;bottom: 0;left: 0;">
					<ul>
						<li class="fs_l">是否确认上图定制效果</li>
						<li class="fs_l"><label><em>*</em>确认请签名：</label><input placeholder="请确认签名" name="" id="sign" /></li>
						<li class="fs_l"><a class="fs_l" id="confirm">确认</a></li>
					</ul>
				</div>
			<else />
				<div class="ylwc_bom fs_l" style="position: absolute;height: auto;bottom: 0;left: 0;">
					<label>已确认签名：</label><span>{$goosinfo.other_content.sign}</span>
				</div>
			</if>
		</div>
		<script type="text/javascript">
			$(document).ready(function(){
				$("#confirm").click(function(){
					var sign = $("#sign").val();
					var rec_id = {$goosinfo.rec_id};
					if(sign){
						$.ajax({
							type:"POST",
							url:"/Mobile/User/destine_sign",
							data:{"rec_id":rec_id,"sign":sign},
							dataType:"json",
							async:false,//同步操作
							success:function(data){
								alert(data.msg);
								if(data.status == 1){
									location.href="/mobile/User/destine_list.html";
								}
							}
						});
					}else{
						alert("请签名确定");
						return false;
					}
				});
			});
		</script>
	</body>

</html>